package com.itianshan.wheel;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.bluetooth.BluetoothIOClass;
import com.bluetooth.ble.BluetoothLeService;

public class CloudUsbCarActivity extends CloudBaseActivity {
    private String deviceType; //设备类型，bluetooth 和 usb

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        usbCommander(); //USB操作
    }
    /*
     * USB控制小车
     */
    private void usbCommander(){
        chatRoomClass.setCloudType("cloud_usb_car");
        TextView room_state = findViewById(R.id.connection_room_state);
        chatRoomClass.prepareToEnterRoom(getApplicationContext(),room_state);  //准备进入房间，服务器获取签名
    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
        //断开USB连接
    }
}
